package Basic.day06;

public class MethodDemo {
   public static void main(String[] args) {
        // 调用方法
        say("ZhangSan", 20);
        say();
        int  sum = add(10, 20);
        System.out.println(sum);
         int a = 012;
   }

    public static int add(int a, int b) {
        return a+b;
    }

    public static int add(int a) {
        return a;
    }


    public static void say() {
        System.out.println("Hello, world!");

    }

    public static void say(String name, int age) {
        System.out.println("Hello, " + name + "! You are " + age + " years old.");
    }


}
